







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Determines if this bag contains an item equal to item. The bag
is not changed.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public bool Contains( T item ) |
Visual Basic (Declaration) |
---|
Public Function Contains ( _ item As T _ ) As Boolean |
Visual C++ |
---|
public: virtual bool Contains ( T item ) sealed |
Parameters
- item
- T
The item to search for.
Return Value
True if the bag contains item. False if the bag does not contain item.
Remarks
Searching the bag for an item takes time O(log N), where N is the number of items in the bag.
See Also
Bag<(Of <T>)> Class
Wintellect.PowerCollections Namespace